﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习8
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("请输入身份证号码");
            string Input = Console.ReadLine();
            if (Input.Length != 18)
            {
                Console.WriteLine("请输入正确的位数");
            }
            else
            {
                long Number;
                if (Int64.TryParse(Input, out Number))
                    Console.WriteLine("输入正确");
                else
                    Console.WriteLine("请全部输入数字");
            }
            Console.ReadKey();
        }
    }
}
